import { createApp } from 'vue'
import App from './App.vue'
import router from '@/router'
import piniaPluginPersist from 'pinia-plugin-persist'
import {createPinia} from 'pinia'
import naive from 'naive-ui'
import {createDiscreteApi} from 'naive-ui'
const store=createPinia()
store.use(piniaPluginPersist)
const {message,notification,dialog} =createDiscreteApi(['message','notification','dialog'])
const app=createApp(App)
app.use(store)
app.use(router)
app.use(naive)
app.provide('message',message)
app.provide('notification',notification)
app.provide('dialog',dialog)
app.mount('#app')
